home *** CD-ROM | disk | FTP | other *** search
/ Mission 3 / Mission 3.zip / Mission 3.iso / texte / 7up_pd / screen.h < prev    next >
Text File  |  1998-10-29  |  3KB  |  88 lines

  1. /*      SCREEN.H
  2.  
  3.         VT52 Macro Includes
  4.  
  5.         Copyright (c) Borland International 1990
  6.         All Rights Reserved.
  7. */
  8.  
  9.  
  10. #if !defined( __VT52 )
  11. #define __VT52
  12.  
  13. #if !defined( __TOS )
  14. #include <tos.h>        /* tos.h already included ? */
  15. #endif
  16.  
  17. /**** Strings ***********************************************************/
  18.  
  19. #define NEXT_LINE       "\r\n"
  20. #define CUR_UP          "\33A"
  21. #define CUR_DOWN        "\33B"
  22. #define CUR_RIGHT       "\33C"
  23. #define CUR_LEFT        "\33D"
  24. #define CLEAR_HOME      "\33E"
  25. #define CUR_HOME        "\33H"
  26. #define SCROLL_UP       "\33I"
  27. #define CLEAR_DOWN      "\33J"
  28. #define CLEAR_EOL       "\33K"
  29. #define INS_LINE        "\33L"
  30. #define DEL_LINE        "\33M"
  31. #define GOTO_POS        "\33Y"
  32. #define INK             "\33b"
  33. #define PAPER           "\33c"
  34. #define CLEAR_UP        "\33d"
  35. #define CUR_ON          "\33e"
  36. #define CUR_OFF         "\33f"
  37. #define SAVE_POS        "\33j"
  38. #define LOAD_POS        "\33k"
  39. #define CLEAR_LINE      "\33l"
  40. #define CLEAR_SOL       "\33o"
  41. #define REV_ON          "\33p"
  42. #define REV_OFF         "\33q"
  43. #define WRAP_ON         "\33v"
  44. #define WRAP_OFF        "\33w"
  45.  
  46. /**** Functionmacros ****************************************************/
  47.  
  48. #define Bell()          Cconout('\a')
  49. #define Tab()           Cconout('\t')
  50. #define Return()        Cconout('\r')
  51. #define Line_feed()     Cconout('\n')
  52. #define Next_line()     Cconws(NEXT_LINE)
  53. #define Cur_up()        Cconws(CUR_UP)
  54. #define Cur_down()      Cconws(CUR_DOWN)
  55. #define Cur_right()     Cconws(CUR_RIGHT)
  56. #define Cur_left()      Cconws(CUR_LEFT)
  57. #define Clear_home()    Cconws(CLEAR_HOME)
  58. #define Cur_home()      Cconws(CUR_HOME)
  59. #define Scroll_up()     Cconws(SCROLL_UP)
  60. #define Clear_down()    Cconws(CLEAR_DOWN)
  61. #define Clear_eol()     Cconws(CLEAR_EOL)
  62. #define Ins_line()      Cconws(INS_LINE)
  63. #define Del_line()      Cconws(DEL_LINE)
  64. #define Goto_pos(x,y)   (Cconws(GOTO_POS),  Cconout(' ' + x), Cconout(' ' + y))
  65. #define Ink(c)          (Cconws(INK),   Cconout(c))
  66. #define Paper(c)        (Cconws(PAPER), Cconout(c))
  67. #define Clear_up()      Cconws(CLEAR_UP)
  68. #define Cur_on()        Cursconf(1, 0)
  69. #define Cur_off()       Cursconf(0, 0)
  70.  
  71. #define Blink_on()      Cursconf(2, 0)
  72. #define Blink_off()     Cursconf(3, 0)
  73. #define Set_blink(rate) Cursconf(4, rate)
  74. #define Get_blink()     Cursconf(5, 0)
  75.  
  76. #define Save_pos()      Cconws(SAVE_POS)
  77. #define Load_pos()      Cconws(LOAD_POS)
  78. #define Clear_line()    Cconws(CLEAR_LINE)
  79. #define Clear_sol()     Cconws(CLEAR_SOL)
  80. #define Rev_on()        Cconws(REV_ON)
  81. #define Rev_off()       Cconws(REV_OFF)
  82. #define Wrap_on()       Cconws(WRAP_ON)
  83. #define Wrap_off()      Cconws(WRAP_OFF)
  84.  
  85. #endif
  86.  
  87. /************************************************************************/
  88. ə